
import 'package:shouyin_app/common/api/api.dart';
import 'package:shouyin_app/common/utils/utils.dart';

import '../http2/http.dart';

class ApiService {
  /// 用户登录
  static Future<DioResponse> login(String username, String password) async {
    return await DioUtil().request<String>(
        URL.login,
        method: DioMethod.post,
        data: {
          'username': username,
          'password': Aes.encrypt(password),
          'captcha': 'xsxs'
        },
    );
    // return await MockServers.mockJson('login');
  }
}
